package homework.test04;
/*
 *  phone操作类
 *
 *
 * */


public class PhoneOperator {
    private Phone phone;

    public PhoneOperator(Phone phone) {
        this.phone = phone;
    }

    //2.业务,对数据积进行操作
    public void call() {
        System.out.println("正在使用价格为" + phone.getPrice() + "元" + phone.getColor() + "的" + phone.getBrand() + "手机打电话");
    }

    public void sendMeesage() {
        System.out.println("正在使用价格为" + phone.getPrice() + "元" + phone.getColor() + "的" + phone.getBrand() + "手机发短信");
    }
}
